﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addOther.aspx.cs" Inherits="WorkOrder.addOther" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/site2.css" type="text/css" rel="STYLESHEET" />
    <link rel="stylesheet" type="text/css" href="../css/subModal.css" />
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
    <script type="text/javascript">
        function isNumber(oNum) {
            if (!oNum) return false;
            var strP = /^\d+(\.\d+)?$/;
            if (!strP.test(oNum)) return false;
            try {
                if (parseFloat(oNum) != oNum) return false;
            }
            catch (ex) {
                return false;
            }
            return true;
        }
        function inputValidate(ovalue) {
            if (!isNumber(ovalue)) {
                alert("您的输入必须是数字！");
                document.getElementById("btnSave").disabled = true;
            }
            else if (isNumber(document.getElementById("txtTimeOut").value) && isNumber(document.getElementById("txtDebuggingTimeOut").value) && isNumber(document.getElementById("txtTestTimeOut").value) && isNumber(document.getElementById("txtDeliveryTimeOut").value) && isNumber(document.getElementById("txtVisitReturnTimeOut").value))
                document.getElementById("btnSave").disabled = false;
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 120px;
        }
        .style2
        {
            height: 14px;
            width: 120px;
        }
        .style3
        {
            height: 24px;
            width: 120px;
        }
    </style>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 1px #54a6e2;">
    <form id="form1" runat="server">
    <div>
        <table width="100%;" style="border: none 0;">
            <tr>
                <td style="height: 2px;">
                </td>
            </tr>
            <tr>
                <td style="border: solid 1px #9fd6ff; background-image: url('../images/snap3.jpg');
                    height: 24px; color: #0930a5;">
                    &nbsp;&nbsp;<img align="absmiddle" src="../images/doc3.gif" />&nbsp;&nbsp;当前位置：其他设置
                </td>
            </tr>
            <tr>
                <td style="height: 1px;">
                </td>
            </tr>
        </table>
        <table width="100%" border="0">
            <tr>
                <td>
                    <div style="border: solid 1px #9fd6ff; background-color: #f0f8ff">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <table border="0" style="width: 100%">
                                        <tr>
                                            <td align="left" class="style1">
                                                工单时限：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtTimeOut" runat="server" CssClass="TextBox" Width="95px" onblur="inputValidate(this.value);"></asp:TextBox>
                                                &nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                软调工作表提交时限：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtDebuggingTimeOut" runat="server" CssClass="TextBox" Width="95px"
                                                    onblur="inputValidate(this.value);"></asp:TextBox>
                                                &nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                拨测表提交时限：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtTestTimeOut" runat="server" CssClass="TextBox" Width="95px" onblur="inputValidate(this.value);"></asp:TextBox>
                                                &nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                交付客户使用时限：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtDeliveryTimeOut" runat="server" CssClass="TextBox" Width="95px"
                                                    onblur="inputValidate(this.value);"></asp:TextBox>
                                                &nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                回访时限：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtVisitReturnTimeOut" runat="server" CssClass="TextBox" Width="95px"
                                                    onblur="inputValidate(this.value);"></asp:TextBox>
                                                &nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style2">
                                            </td>
                                            <td style="height: 14px;">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style3">
                                            </td>
                                            <td style="height: 24px;">
                                                <asp:Button ID="btnSave" CssClass="Button" OnClientClick="" runat="server" Text="&nbsp;保&nbsp;&nbsp;存&nbsp;"
                                                    OnClick="btnSave_Click" />
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
